import { BaseModel } from '@/common/base/base.model';
import { Column, Entity } from 'typeorm';

@Entity('TRACK', {
  synchronize: false,
}) // 埋点
export class TrackModel extends BaseModel {
  @Column({
    comment: '事件名',
    type: 'varchar',
    length: 500,
  })
  eventKey: string;

  @Column({
    comment: '属性值',
    type: 'json',
    default: {},
  })
  properties: any;

  @Column({
    comment: '用户uuid',
    type: 'uuid',
    nullable: true,
  })
  userUuid: string;
}
